package top.zy.service.zymallgoodsservice.goods.service;

import top.zy.common.zymallcommon.vo.PageResult;
import top.zy.service.zymallgoodsinterface.dto.GoodsPageParam;
import top.zy.service.zymallgoodsinterface.dto.GoodsParams;
import top.zy.service.zymallgoodsinterface.dto.SpuParam;
import top.zy.service.zymallgoodsinterface.entity.Sku;
import top.zy.service.zymallgoodsinterface.entity.Spu;
import top.zy.service.zymallgoodsinterface.entity.SpuDetail;
import top.zy.service.zymallgoodsinterface.vo.GoodsVo;
import top.zy.service.zymallgoodsinterface.vo.SkuVo;

import java.util.List;

/**
 * @Author: HouZeYu
 * @Description:
 * @Date: Created in 15:50 2019/6/25
 */
public interface GoodsService {

    PageResult<GoodsVo> queryGoodsPage(GoodsPageParam goodsPageParam);

    void saleableGoods(SpuParam spuParam);

    void deleteGoods(Long id);

    void saveGoods(GoodsParams goodsParams);

    SpuDetail querySpuDetailById(Long spuId);

    List<SkuVo> querySkuBySpuId(Long id);

    void updateGoods(GoodsParams goodsParams);

    GoodsVo querySpuBySpuId(Long id);
}
